package com.itshidu.jiaowu.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author XiaZengming123
 * @since 2019-07-18
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Violate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 处理人的id
     */
    @TableField("handler_id")
    private Long handlerId;
    /**
     * 学生id
     */
    @TableField("student_id")
    private Long studentId;
    /**
     * 处分原因
     */
    private String reason;
    /**
     * 分数扣除
     */
    private Integer score;
    private Date created;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHandlerId() {
        return handlerId;
    }

    public void setHandlerId(Long handlerId) {
        this.handlerId = handlerId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @Override
    public String toString() {
        return "Violate{" +
        ", id=" + id +
        ", handlerId=" + handlerId +
        ", studentId=" + studentId +
        ", reason=" + reason +
        ", score=" + score +
        ", created=" + created +
        "}";
    }
}
